package com.me.hippy.sdk.demo.retrofitokhoot.model

import android.text.TextUtils

abstract class BaseHttpResponse {
    abstract fun isSuccess(): Boolean
    open fun isShowErrorMsg(): Boolean {
        return !isSuccess() && !TextUtils.isEmpty(getErrorMsg())
    }

    abstract fun getErrorMsg(): String
}